package com.biovr.backend.repository;
import com.biovr.backend.domain.Expirement;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by dell on 2016/12/22.
 */
@Repository
public interface ExpirementRepository extends MongoRepository<Expirement, String> {
    List<Expirement> findByStatus(@Param("Status") boolean status);
    List<Expirement> findByName(String name);
    Expirement findByIndex(Integer index);
    Expirement findByStdCode(String stdCode);
}

